package HP.com.bank_2.wangyu.bean;

import java.util.Date;
import java.util.Scanner;


public class User {
    private int cardId;
    private int cardPwd;
    private String userName;
    private String userSex;
    private String userPhone;
    private Date userBirthday;
    private Date userRegDate;
    private double userMoney;


    /*    @Override
            public String toString() {
                return "User{}";
            }*/
    public void putInCard(ATM atm) {

    }

    //输入字符串
    public String inPutStr() {
        Scanner scanner = new Scanner(System.in);
        String input_str = scanner.nextLine();
        return input_str;
    }

    //菜单选择
    public int inPutNum() {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        return num;
    }

    public User() {

    }

    public User(int cardId, int cardPwd, String userName, String userSex, Date userBirthday, String userPhone, Date userRegDate, double userMoney) {
        this.cardId = cardId;
        this.cardPwd = cardPwd;
        this.userName = userName;
        this.userSex = userSex;
        this.userBirthday = userBirthday;
        this.userPhone = userPhone;
        this.userRegDate = userRegDate;
        this.userMoney = userMoney;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public int getCardPwd() {
        return cardPwd;
    }

    public void setCardPwd(int cardPwd) {
        this.cardPwd = cardPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public Date getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(Date userBirthday) {
        this.userBirthday = userBirthday;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Date getUserRegDate() {
        return userRegDate;
    }

    public void setUserRegDate(Date userRegDate) {
        this.userRegDate = userRegDate;
    }

    public double getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(double userMoney) {
        this.userMoney = userMoney;
    }


    @Override
    public String toString() {
        return "User{" +
                "cardId=" + cardId +
                ", cardPwd=" + cardPwd +
                ", userName='" + userName + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userBirthday='" + userBirthday + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userRegDate='" + userRegDate + '\'' +
                ", userMoney=" + userMoney +
                '}';
    }
}
